<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>IBustEngineSimple</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
<link rel="home" href="index.html" title="IBust Reference Manual">
<link rel="up" href="ch03.html" title="Input method engine">
<link rel="prev" href="IBustEngineDesc.html" title="IBustEngineDesc">
<link rel="next" href="IBustFactory.html" title="IBustFactory">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="IBustEngineDesc.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch03.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">IBust Reference Manual</th>
<td><a accesskey="n" href="IBustFactory.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#ibust-IBustEngineSimple.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#ibust-IBustEngineSimple.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="ibust-IBustEngineSimple"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="ibust-IBustEngineSimple.top_of_page"></a>IBustEngineSimple</span></h2>
<p>IBustEngineSimple</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="ibust-IBustEngineSimple.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">#define             <a class="link" href="ibust-IBustEngineSimple.html#IBUST-MAX-COMPOSE-LEN:CAPS" title="IBUST_MAX_COMPOSE_LEN">IBUST_MAX_COMPOSE_LEN</a>
struct              <a class="link" href="ibust-IBustEngineSimple.html#IBustEngineSimple" title="struct IBustEngineSimple">IBustEngineSimple</a>;
struct              <a class="link" href="ibust-IBustEngineSimple.html#IBustEngineSimpleClass" title="struct IBustEngineSimpleClass">IBustEngineSimpleClass</a>;
<span class="returnvalue">void</span>                <a class="link" href="ibust-IBustEngineSimple.html#ibust-engine-simple-add-table" title="ibust_engine_simple_add_table ()">ibust_engine_simple_add_table</a>        (<em class="parameter"><code><a class="link" href="ibust-IBustEngineSimple.html#IBustEngineSimple" title="struct IBustEngineSimple"><span class="type">IBustEngineSimple</span></a> *simple</code></em>,
                                                         <em class="parameter"><code>const <span class="type">guint16</span> *data</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> max_seq_len</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> n_seqs</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="ibust-IBustEngineSimple.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="ibust-IBustEngineSimple.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="IBUST-MAX-COMPOSE-LEN:CAPS"></a><h3>IBUST_MAX_COMPOSE_LEN</h3>
<pre class="programlisting">#define IBUST_MAX_COMPOSE_LEN 7
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="IBustEngineSimple"></a><h3>struct IBustEngineSimple</h3>
<pre class="programlisting">struct IBustEngineSimple {
};
</pre>
<p>
IBustEngineSimple properties.
</p>
</div>
<hr>
<div class="refsect2">
<a name="IBustEngineSimpleClass"></a><h3>struct IBustEngineSimpleClass</h3>
<pre class="programlisting">struct IBustEngineSimpleClass {
    /* signals */
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ibust-engine-simple-add-table"></a><h3>ibust_engine_simple_add_table ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ibust_engine_simple_add_table        (<em class="parameter"><code><a class="link" href="ibust-IBustEngineSimple.html#IBustEngineSimple" title="struct IBustEngineSimple"><span class="type">IBustEngineSimple</span></a> *simple</code></em>,
                                                         <em class="parameter"><code>const <span class="type">guint16</span> *data</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> max_seq_len</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> n_seqs</code></em>);</pre>
<p>
Adds an additional table to search to the engine. Each row of the table
consists of max_seq_len key symbols followed by two guint16 interpreted as
the high and low words of a gunicode value. Tables are searched starting from
the last added.
</p>
<p>
The table must be sorted in dictionary order on the numeric value of the key
symbol fields. (Values beyond the length of the sequence should be zero.)
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>simple</code></em> :</span></p></td>
<td>An IBustEngineSimple.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>The table which must be available
during the whole life of the simple engine. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint16][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>max_seq_len</code></em> :</span></p></td>
<td>Maximum length of a swquence in the table (cannot be greater
than <a class="link" href="ibust-IBustEngineSimple.html#IBUST-MAX-COMPOSE-LEN:CAPS" title="IBUST_MAX_COMPOSE_LEN"><code class="literal">IBUST_MAX_COMPOSE_LEN</code></a>)</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>